<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索结果</title>
</head>
<body>
    <h1>搜索结果</h1>
    <table id="resultTable">
        <thead>
            <tr>
                <th>许可证号</th>
                <th>企业字号名称</th>
                <th>经营地址</th>
                <th>持证人</th>
                <th>照顾类型</th>
                <th>情况说明</th>
                <th>参照合理布局版本</th>
                <th>备注</th>
            </tr>
        </thead>
        <tbody>
            <tr id="resultRow"></tr>
        </tbody>
    </table>
    <button onclick="window.location.href='test.html'">返回</button>

    <script>
        const urlParams = new URLSearchParams(window.location.search);
        const data = JSON.parse(decodeURIComponent(urlParams.get('data')));
        const resultRow = document.getElementById('resultRow');
        resultRow.innerHTML = data.map(item => `<td>${item}</td>`).join('');
    </script>
</body>
</html>